package belpic.spring_data.domain;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.data.jpa.domain.AbstractPersistable;

@Entity
public class Application extends AbstractPersistable<Long>{

	private static final long serialVersionUID = 1L;
	
	@NotBlank
	@Column(unique=true)
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		return name;
	}
	
	@Override
	public void setId(Long id) {
		super.setId(id);
	}

}
